# file:: $Name$
# author::  $Author$
# version:: $Revision$
# date:: $Date$
#
# This source code copyright (C) 2006 by Ralph M. Churchill
# All rights reserved.
#
# Released under the terms of the GNU General Public License
# See LICENSE file for additional information.

require 'engine/command'

class Say < Command
    def initialize(executor)
        super(executor,"say","say message",
              "Attempt to say something.")
    end
    def execute(params)
        raise UsageException if params.empty?
        msg = params.respond_to?(:join) ? params.join(' ') : params
        GameEngine.instance.do_action(Action.new(:attemptsay,self.executor,
                                                 {:msg => msg}))
    end
end
